using System;
using System.Runtime.InteropServices;
using System.Security.Permissions;
using Microsoft.SharePoint;

using SoftwareCraft.SharePoint.Diagnostics.Demo;

namespace SoftwareCraft.SharePoint.Diagnostics.Demo.Features.SoftwareCraft_SharePoint_Diagnostics_Demo
{
    /// <summary>
    /// This class handles events raised during feature activation, deactivation, installation, uninstallation, and upgrade.
    /// </summary>
    /// <remarks>
    /// The GUID attached to this class may be used during packaging and should not be modified.
    /// </remarks>

    [Guid("8a1f2e3e-2ac8-46c0-812f-545dbf53c5bd")]
    public class SoftwareCraft_SharePoint_Diagnostics_DemoEventReceiver : SPFeatureReceiver
    {
        public override void FeatureActivated(SPFeatureReceiverProperties properties)
        {
            Diagnostics.AddArea();
        }
        public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
        {
            Diagnostics.RemoveArea();
        }

        //public override void FeatureInstalled(SPFeatureReceiverProperties properties)
        //{
        //}
        //public override void FeatureUninstalling(SPFeatureReceiverProperties properties)
        //{
        //}
        //public override void FeatureUpgrading(SPFeatureReceiverProperties properties, string upgradeActionName, System.Collections.Generic.IDictionary<string, string> parameters)
        //{
        //}
    }
}
